//
//  LotteryWebViewController.m
//  SXNews
//
//  Created by zengyuan on 2017/8/24.
//  Copyright © 2017年 ShangxianDante. All rights reserved.
//

#import "LotteryWebViewController.h"
#import "WebViewController.h"
#import "AppDelegate.h"

@interface LotteryWebViewController ()
@property (weak, nonatomic) IBOutlet UIWebView *webview;
@property (weak, nonatomic) IBOutlet UIScrollView *scview;
@property (weak, nonatomic) IBOutlet UIView *scrContentView;

@end

@implementation LotteryWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title = @"彩迷";
    
    
//    AppDelegate *deleagte = [[UIApplication sharedApplication] delegate];
//    if (deleagte.isshowwap) {
//        NSURL * url = [NSURL URLWithString:deleagte.wapurl];
//        NSURLRequest * request = [NSURLRequest requestWithURL:url];
//        [self.webview loadRequest:request];
//        self.scrContentView.hidden = YES;
//    }else{
//
//    }
    

//
//    _scview.contentSize = CGSizeMake(_scview.width, 1000);
//
//    _scrContentView.height = 1000;

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)seeDetail:(id)sender {
    
    WebViewController *w = [WebViewController new];
    w.hidesBottomBarWhenPushed = YES;
    NSString *path = [[NSBundle mainBundle] pathForResource:@"html/wwww" ofType:@"html"];
    w.urlStr = path;
    [self.navigationController pushViewController:w animated:YES];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
